//
//  LWSportMainViewController.m
//  LWmyTracking
//
//  Created by mac on 17/1/13.
//  Copyright © 2017年 ITLIN. All rights reserved.
//

#import "LWSportMainViewController.h"
#import "LWSportDataViewController.h"
#import "LWSportTracking.h"
@interface LWSportMainViewController ()

@end

@implementation LWSportMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)sportButtonClick:(UIButton *)sender {
    
    NSLog(@"%zd",sender.tag);
    
    LWSportDataViewController *sportDataVc = [[LWSportDataViewController alloc]init];
    
    
    //根据按钮的tag值来确定 运动的类型
    LWSportType sportType = sender.tag;
    
    //把这个运动类型传递到数据监控Vc
    sportDataVc.sportType = sportType;
    
    [self presentViewController:sportDataVc animated:YES completion:nil];
    
    
}


@end
